from django.conf.urls import url
from rest_framework_jwt.views import obtain_jwt_token

from . import views

urlpatterns =[
    url(r'^usernames/(?P<username>\w{5,20})/count/$',views.UsernameView.as_view()),
    url(r'^phones/(?P<mobile>1[345789]\d{9})/count/$',views.MobileView.as_view()),
    url(r'^$',views.RegisterView.as_view()),
    url(r'^auths/$',obtain_jwt_token),
    url(r'^infos/$',views.UserInfoView.as_view()),
    url(r'^emails/$',views.SendEmailView.as_view()),
]

